<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	request.setCharacterEncoding("UTF-8");
	String cp = request.getContextPath(); 
	
	String userName=request.getParameter("userName");
	String userAge=request.getParameter("userAge");
	
	String result = "";
	for(int i=1; i<=3; i++){
		
		result += "{\"id\":\""+i;
		result += "\",\"userName\":\"" + userName;
		result += "\",\"userAge\":\"" +userAge + "\"},";
	}
	
	result = result.substring(0,result.length()-1);
	result = "[" + result +"]";
	
	out.println(result);
%>
